package com.saumya.robotlegs.events
{
	import flash.events.Event;

	public class LoggerEvent extends Event
	{
		
		public static const UPDATE_LOG:String='update_log_event';
		
		private var message:String='';
		private var shouldHilight:Boolean=false;
		
		public function LoggerEvent(type:String,bubbles:Boolean=false,cancelable:Boolean=false)
		{
			super(type,bubbles,cancelable);
		}
		
		public override function clone():Event
		{
			var le:LoggerEvent=new LoggerEvent(this.type,this.bubbles,this.cancelable);
			le.setLogMessage(this.message);
			le.setHilightOption(this.shouldHilight);
			return le;
		}
		
		public function setLogMessage(msg:String):void
		{
			this.message=msg;
		}
		
		public function getLogMessage():String
		{
			return (this.message);
		}
		
		public function setHilightOption(shouldBeHilighted:Boolean):void
		{
			this.shouldHilight=shouldBeHilighted;
		}
		
		public function getHilightOption():Boolean
		{
			return this.shouldHilight;
		}
	}
}